#include <iostream>
#include <vector>

using namespace std;

int pourMilk(int x, int y, int m) {
  return x + y <= m ? x + y : max(x, y);
}

int main(int argc, char const *argv[]) {
  cout << pourMilk(224, 330, 332) << endl;
  return 0;
}

 
